
import animationType from "@/utils/animationType.js";
/**
 * 去协议详情
 */
export function goToAgreement(from) {
  return new Promise((resolve) => {
    // #ifdef MP
    uni.navigateTo({
      url: `/pages/goods/agreement_info/index?from=${from}`,
    });
    // #endif
    // #ifndef MP
    uni.navigateTo({
      animationType: animationType.type,
      animationDuration: animationType.duration,
      url: `/pages/goods/agreement_info/index?from=${from}`,
    });
    // #endif
  });
}
